package lbh.crawler;

import java.util.ArrayList;
import java.util.List;

public class TaskManager extends Module {

	private List<Task> tasks = new ArrayList<>();
	private int maxRunningTasks = 0;

	public TaskManager(Subsystem ss, String name) {
		super(ss, name);
	}

	public int getMaxRunningTasks(int m) {
		return this.maxRunningTasks;
	}

	public void setMaxRunningTasks(int m) {
		this.maxRunningTasks = m;
	}

	public List<Task> getTasks() {
		return this.tasks;
	}

	@Override
	public String getName() {
		return "taskmanager";
	}
}
